package com.cx.pojo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Game {
    private Integer gameId;

    private String gameName;

    private Long gamePrice;

    private Integer userId;

    private String gamePicture;

    private Integer gtId;

    private Long gameDiscount;

    private String gameBody;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date gameTime= new Date();

    private String gameIntroduction;

    public Integer getGameId() {
        return gameId;
    }

    public void setGameId(Integer gameId) {
        this.gameId = gameId;
    }

    public String getGameName() {
        return gameName;
    }

    public void setGameName(String gameName) {
        this.gameName = gameName == null ? null : gameName.trim();
    }

    public Long getGamePrice() {
        return gamePrice;
    }

    public void setGamePrice(Long gamePrice) {
        this.gamePrice = gamePrice;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getGamePicture() {
        return gamePicture;
    }

    public void setGamePicture(String gamePicture) {
        this.gamePicture = gamePicture == null ? null : gamePicture.trim();
    }

    public Integer getGtId() {
        return gtId;
    }

    public void setGtId(Integer gtId) {
        this.gtId = gtId;
    }

    public Long getGameDiscount() {
        return gameDiscount;
    }

    public void setGameDiscount(Long gameDiscount) {
        this.gameDiscount = gameDiscount;
    }

    public String getGameBody() {
        return gameBody;
    }

    public void setGameBody(String gameBody) {
        this.gameBody = gameBody == null ? null : gameBody.trim();
    }

    public Date getGameTime() {
        return gameTime;
    }

    public void setGameTime(Date gameTime) {
        this.gameTime = gameTime;
    }

    public String getGameIntroduction() {
        return gameIntroduction;
    }

    public void setGameIntroduction(String gameIntroduction) {
        this.gameIntroduction = gameIntroduction;
    }

    @Override
    public String toString() {
        return "Game{" +
                "gameId=" + gameId +
                ", gameName='" + gameName + '\'' +
                ", gamePrice=" + gamePrice +
                ", userId=" + userId +
                ", gamePicture='" + gamePicture + '\'' +
                ", gtId=" + gtId +
                ", gameDiscount=" + gameDiscount +
                ", gameBody='" + gameBody + '\'' +
                ", gameTime=" + gameTime +
                ", gameIntroduction='" + gameIntroduction + '\'' +
                '}';
    }
}